var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});
rl.on('line', function (line) {
  if (line == 'exit' || line == 'quit' || line == 'q')
    rl.close();
  else
    console.log('您输入了: ' + line);
});